package com.hyg.module_report.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.hyg.lib_base.MyView.BodyConstitutionPoint;

import java.util.ArrayList;
import java.util.List;


public class HealthReportDetailData implements Parcelable {

    // 0-健康趋势评估   1-体检结果汇总   2-望诊健康评估   3-脉诊健康    4-体质健康评估   5-耳穴健康  6-体质大数据
    private String SummaryType = "0";

    // 健康趋势评估
    private List<BodyConstitutionPoint> HealthSystemPoints = new ArrayList<>();
    private String HealthSex = "男";
//    private int process = 0;

    //体检结果汇总
    private String zonghe_advice = "";

    // 望诊健康
    private String shetu_url = "";
    private String shexia_url = "";
    private String miantu_url = "";

    private String sheshen = "";
    private String shetai = "";
    private String shese = "";
    private String shexing = "";
    private String taise = "";
    private String taizhi = "";
    private String shexiamailuo = "";
    private String shetufenxi = "";

    private String zhengtimianse = "";
    private String renzhongyanse = "";
    private String renzhongxingtai = "";
    private String miantufenxi = "";

    // 脉诊健康
    private ArrayList<PulseDatas> pulseDatas = new ArrayList<>();
    private String maixiang_zhenduan = "";
    private String left_maixing = "";
    private String right_maixing = "";

    // 体质健康
    private String physique = "";
    private String tizhi_advice = "";
    private String MainBody = "";
    private String secondaryBody = "";

    //耳穴健康
    private String erxue = "";
    private String erxue_advice = "";


    public HealthReportDetailData() {
    }

    // 健康趋势
    public HealthReportDetailData(String SummaryType, List<BodyConstitutionPoint> HealthSystemPoints, String HealthSex) {
        this.SummaryType = SummaryType;
        this.HealthSystemPoints = HealthSystemPoints;
        this.HealthSex = HealthSex;
    }

    //体质评估  和 汇总结果
    public HealthReportDetailData(String SummaryType, String physique) {
        this.SummaryType = SummaryType;
        if (this.SummaryType.equals("1")) {
            this.zonghe_advice = physique;
        } else {
            this.physique = physique;
        }
    }

    //望诊评估
    public HealthReportDetailData(String SummaryType, String shetu_url, String shexia_url, String miantu_url, String sheshen, String shetai, String shese, String shexing, String taise, String taizhi,
                                  String shexiamailuo, String shetufenxi, String zhengtimianse, String renzhongyanse, String renzhongxingtai, String miantufenxi) {
        this.SummaryType = SummaryType;
        this.shetu_url = shetu_url;
        this.shexia_url = shexia_url;
        this.miantu_url = miantu_url;
        this.sheshen = sheshen;
        this.shetai = shetai;
        this.shese = shese;
        this.shexing = shexing;
        this.taise = taise;
        this.taizhi = taizhi;
        this.shexiamailuo = shexiamailuo;
        this.shetufenxi = shetufenxi;


        this.zhengtimianse = zhengtimianse;
        this.renzhongyanse = renzhongyanse;
        this.renzhongxingtai = renzhongxingtai;
        this.miantufenxi = miantufenxi;
    }

    //脉诊评估
    public HealthReportDetailData(String SummaryType, ArrayList<PulseDatas> pulseDatas, String maixiang_zhenduan) {
        this.SummaryType = SummaryType;
        this.pulseDatas.clear();
        this.pulseDatas.addAll(pulseDatas);
        this.maixiang_zhenduan = maixiang_zhenduan;
    }

    //脉诊评估
    public HealthReportDetailData(String SummaryType, ArrayList<PulseDatas> pulseDatas, String maixiang_zhenduan, String left_maixing, String right_maixing) {
        this.SummaryType = SummaryType;
        this.pulseDatas.clear();
        this.pulseDatas.addAll(pulseDatas);
        this.maixiang_zhenduan = maixiang_zhenduan;
        this.left_maixing = left_maixing;
        this.right_maixing = right_maixing;
    }

    //体质评估
    public HealthReportDetailData(String SummaryType, String physique, String tizhi_advice, String MainBody, String secondaryBody) {
        this.SummaryType = SummaryType;
        this.physique = physique;
        this.tizhi_advice = tizhi_advice;
        this.MainBody = MainBody;
        this.secondaryBody = secondaryBody;
    }


    public String getSummaryType() {
        return SummaryType;
    }

    public void setSummaryType(String summaryType) {
        SummaryType = summaryType;
    }

    public List<BodyConstitutionPoint> getHealthSystemPoints() {
        return HealthSystemPoints;
    }

    public void setHealthSystemPoints(List<BodyConstitutionPoint> healthSystemPoints) {
        HealthSystemPoints = healthSystemPoints;
    }

    public String getHealthSex() {
        return HealthSex;
    }

    public void setHealthSex(String healthSex) {
        HealthSex = healthSex;
    }

    public String getZonghe_advice() {
        return zonghe_advice;
    }

    public void setZonghe_advice(String zonghe_advice) {
        this.zonghe_advice = zonghe_advice;
    }

    public String getShetu_url() {
        return shetu_url;
    }

    public void setShetu_url(String shetu_url) {
        this.shetu_url = shetu_url;
    }

    public String getShexia_url() {
        return shexia_url;
    }

    public void setShexia_url(String shexia_url) {
        this.shexia_url = shexia_url;
    }

    public String getMiantu_url() {
        return miantu_url;
    }

    public void setMiantu_url(String miantu_url) {
        this.miantu_url = miantu_url;
    }

    public String getSheshen() {
        return sheshen;
    }

    public void setSheshen(String sheshen) {
        this.sheshen = sheshen;
    }

    public String getShetai() {
        return shetai;
    }

    public void setShetai(String shetai) {
        this.shetai = shetai;
    }

    public String getShese() {
        return shese;
    }

    public void setShese(String shese) {
        this.shese = shese;
    }

    public String getShexing() {
        return shexing;
    }

    public void setShexing(String shexing) {
        this.shexing = shexing;
    }

    public String getTaise() {
        return taise;
    }

    public void setTaise(String taise) {
        this.taise = taise;
    }

    public String getTaizhi() {
        return taizhi;
    }

    public void setTaizhi(String taizhi) {
        this.taizhi = taizhi;
    }

    public String getShexiamailuo() {
        return shexiamailuo;
    }

    public void setShexiamailuo(String shexiamailuo) {
        this.shexiamailuo = shexiamailuo;
    }

    public String getShetufenxi() {
        return shetufenxi;
    }

    public void setShetufenxi(String shetufenxi) {
        this.shetufenxi = shetufenxi;
    }

    public String getZhengtimianse() {
        return zhengtimianse;
    }

    public void setZhengtimianse(String zhengtimianse) {
        this.zhengtimianse = zhengtimianse;
    }

    public String getRenzhongyanse() {
        return renzhongyanse;
    }

    public void setRenzhongyanse(String renzhongyanse) {
        this.renzhongyanse = renzhongyanse;
    }

    public String getRenzhongxingtai() {
        return renzhongxingtai;
    }

    public void setRenzhongxingtai(String renzhongxingtai) {
        this.renzhongxingtai = renzhongxingtai;
    }

    public String getMiantufenxi() {
        return miantufenxi;
    }

    public void setMiantufenxi(String miantufenxi) {
        this.miantufenxi = miantufenxi;
    }

    public ArrayList<PulseDatas> getPulseDatas() {
        return pulseDatas;
    }

    public void setPulseDatas(ArrayList<PulseDatas> pulseDatas) {
        this.pulseDatas = pulseDatas;
    }

    public String getMaixiang_zhenduan() {
        return maixiang_zhenduan;
    }

    public void setMaixiang_zhenduan(String maixiang_zhenduan) {
        this.maixiang_zhenduan = maixiang_zhenduan;
    }

    public String getLeft_maixing() {
        return left_maixing;
    }

    public void setLeft_maixing(String left_maixing) {
        this.left_maixing = left_maixing;
    }

    public String getRight_maixing() {
        return right_maixing;
    }

    public void setRight_maixing(String right_maixing) {
        this.right_maixing = right_maixing;
    }

    public String getPhysique() {
        return physique;
    }

    public void setPhysique(String physique) {
        this.physique = physique;
    }

    public String getTizhi_advice() {
        return tizhi_advice;
    }

    public void setTizhi_advice(String tizhi_advice) {
        this.tizhi_advice = tizhi_advice;
    }

    public String getMainBody() {
        return MainBody;
    }

    public void setMainBody(String mainBody) {
        MainBody = mainBody;
    }

    public String getSecondaryBody() {
        return secondaryBody;
    }

    public void setSecondaryBody(String secondaryBody) {
        this.secondaryBody = secondaryBody;
    }

    public String getErxue() {
        return erxue;
    }

    public void setErxue(String erxue) {
        this.erxue = erxue;
    }

    public String getErxue_advice() {
        return erxue_advice;
    }

    public void setErxue_advice(String erxue_advice) {
        this.erxue_advice = erxue_advice;
    }

    protected HealthReportDetailData(Parcel in) {
        SummaryType = in.readString();
        HealthSystemPoints = in.createTypedArrayList(BodyConstitutionPoint.CREATOR);
        HealthSex = in.readString();
        zonghe_advice = in.readString();
        shetu_url = in.readString();
        shexia_url = in.readString();
        miantu_url = in.readString();
        sheshen = in.readString();
        shetai = in.readString();
        shese = in.readString();
        shexing = in.readString();
        taise = in.readString();
        taizhi = in.readString();
        shexiamailuo = in.readString();
        shetufenxi = in.readString();
        zhengtimianse = in.readString();
        renzhongyanse = in.readString();
        renzhongxingtai = in.readString();
        miantufenxi = in.readString();
        pulseDatas = in.createTypedArrayList(PulseDatas.CREATOR);
        maixiang_zhenduan = in.readString();
        left_maixing = in.readString();
        right_maixing = in.readString();
        physique = in.readString();
        tizhi_advice = in.readString();
        MainBody = in.readString();
        secondaryBody = in.readString();
        erxue = in.readString();
        erxue_advice = in.readString();
    }

    public static final Creator<HealthReportDetailData> CREATOR = new Creator<HealthReportDetailData>() {
        @Override
        public HealthReportDetailData createFromParcel(Parcel in) {
            return new HealthReportDetailData(in);
        }

        @Override
        public HealthReportDetailData[] newArray(int size) {
            return new HealthReportDetailData[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(SummaryType);
        parcel.writeTypedList(HealthSystemPoints);
        parcel.writeString(HealthSex);
        parcel.writeString(zonghe_advice);
        parcel.writeString(shetu_url);
        parcel.writeString(shexia_url);
        parcel.writeString(miantu_url);
        parcel.writeString(sheshen);
        parcel.writeString(shetai);
        parcel.writeString(shese);
        parcel.writeString(shexing);
        parcel.writeString(taise);
        parcel.writeString(taizhi);
        parcel.writeString(shexiamailuo);
        parcel.writeString(shetufenxi);
        parcel.writeString(zhengtimianse);
        parcel.writeString(renzhongyanse);
        parcel.writeString(renzhongxingtai);
        parcel.writeString(miantufenxi);
        parcel.writeTypedList(pulseDatas);
        parcel.writeString(maixiang_zhenduan);
        parcel.writeString(left_maixing);
        parcel.writeString(right_maixing);
        parcel.writeString(physique);
        parcel.writeString(tizhi_advice);
        parcel.writeString(MainBody);
        parcel.writeString(secondaryBody);
        parcel.writeString(erxue);
        parcel.writeString(erxue_advice);
    }
}
